﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:space="preserve" xmlns:a="http://www.tei-c.org/ns/1.0">
  <xsl:output method="xml" version="1.0" indent="yes"/>
  <xsl:template match="/">
    <w:footnotes xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
      <w:footnote w:type="separator" w:id="0">
        <w:p>
          <w:r>
            <w:separator/>
          </w:r>
        </w:p>
      </w:footnote>
      <w:footnote w:type="continuationSeparator" w:id="1">
        <w:p>
          <w:r>
            <w:continuationSeparator/>
          </w:r>
        </w:p>
      </w:footnote>
      <xsl:apply-templates/>
    </w:footnotes>
    </xsl:template>
   
  <xsl:template name="notes" match="a:note[@place='foot']">
  <!--<xsl:number count="note" format="i"/>-->
    <xsl:variable name="numFNote">
      <xsl:number level="any" format="1"/>
    </xsl:variable>
    <!--<w:footnote w:id="{$numFNote}">-->
    <w:footnote>
      <xsl:attribute name="w:id">
        <xsl:value-of select="$numFNote+1"/>
      </xsl:attribute>
      <w:p>
	      <w:pPr>
		      <w:pStyle w:val="FootnoteText"/>
	      </w:pPr>
	      <w:r>
		      <w:rPr>
			      <w:rStyle w:val="FootnoteReference"/>
		      </w:rPr>
		      <w:footnoteRef/>
	      </w:r>
	      <w:r>
		      <w:t>
            <xsl:value-of select="."/>
          </w:t>
	      </w:r>
      </w:p>
    </w:footnote>
  </xsl:template>
  <xsl:template match="text()">
    
  </xsl:template>

  </xsl:stylesheet>